package com.rtx.exception;


/**
 * 自定义异常
 *
 * @author Zy
 */
public class RtxWmsException extends RuntimeException {

    private String code;
    private String returnCode;
    private String descr;
    private Object[] params;

    public RtxWmsException() {
        super();
    }

    public RtxWmsException(Throwable cause) {
        super(cause);
    }

    public RtxWmsException(String code, Object... params) {
        super(code);
        this.code = code;
        this.params = params;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public String getCode() {
        return code;
    }

    public String getDescr() {
        return descr;
    }

    public Object[] getParams() {
        return params;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
